package org.future.wsdl.data;

import java.util.ArrayList;
import java.util.List;

/**
 * wsdl:types 元素信息
 * @author dycc
 *
 */
public class WsdlTypes {
    
    private List<XSchema> schemas = new ArrayList<XSchema>();
    
    // schemas
    public List<XSchema> getSchemas() {
        return schemas;
    }
    public void setSchemas(List<XSchema> schemas) {
        this.schemas = schemas;
    }
    
    /**
     * toString
     */
    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append("<wsdl:types>");
        sb.append("\n");
        for(int i=0;i<schemas.size();i++){
            sb.append(schemas.get(i));
            sb.append("\n");
        }
        sb.append("</wsdl:types>");
        return sb.toString();
    }
}
